Create Your Own Basic Chia Watchdog Using Powershell (Windows & Discord Notifications) Step-by-Step

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 44

  • @HypraNT
    @HypraNT 3 года назад +12

    u are definitely not another tech channel, you are much more than that. hope you can get to wherever you want to be.

    • @SysDeskDev
      @SysDeskDev  3 года назад +3

      I really appreciate those kind words!

  • @jozefflak895
    @jozefflak895 3 года назад

    KING of Scripts. Thanks for yours job :) All works perfect.

  • @DaGentlemanLOL
    @DaGentlemanLOL 3 года назад +2

    Not the content we deserved but the content we needed. Thank homie im watching closely.

  • @romans1139
    @romans1139 3 года назад +1

    Nice video, well done. Look forward to GUI :)

  • @goyetus
    @goyetus 3 года назад

    Again another awesome video . Thanks for your hard work !!!

    • @SysDeskDev
      @SysDeskDev  3 года назад

      So nice of you, thank you!

  • @damienong1462
    @damienong1462 3 года назад +1

    Just started watching your channel & subbed. I wonder why do you use manual plotting instead of swar plotting manager or plotman ? O.o
    Quite new this CHIA mining. So wanna understand more before i start doing it.

    • @SysDeskDev
      @SysDeskDev  3 года назад +1

      I used the GUI in the beginning because I didn't know much about chia and was focused on other things, I then got more interested in chia and since I really like powershell decided to plot with powershell instead. Plotting managers are great, but I really enjoyed learning how to do it in poweshell and sharing what I found with others. Thank you for the sub!

  • @ovcharenko.studio
    @ovcharenko.studio 3 года назад

    Many thanks! Your video is a very usefull

  • @MrNormanvelez
    @MrNormanvelez 3 года назад

    Is there anybway you can add thus to the powers hello GUI? That way it would be another great improvement!!

  • @dmitriykratos2522
    @dmitriykratos2522 3 года назад

    Hi, there how is going with the Chia Plotting GUI Power Shell? And I was wondering if possible to make an automatic start delay for the next parallel plot based on analytics on the last logs and phases that current parallel plots are into. When using a static delay, it happens that parallel threads sometimes are at the same phase 1 after some time of circling. It makes speed of plottin lower...

  • @bartosznowacki3515
    @bartosznowacki3515 3 года назад

    whats the diferents from powershell windows vs ubuntu can u do some cli ubuntu tourial please ?

    • @SysDeskDev
      @SysDeskDev  3 года назад

      So the newest version of powershell which is Powershell 7 runs both on Linux and Windows, so the actual powershell functionality is pretty identical as far as I know. Most of my powershell was written in Powershell 5.1 which is Windows only, however some of it should work the same in Powershell 7.

  • @maahm0025
    @maahm0025 3 года назад

    Great video! please More content :)

  • @galatoris
    @galatoris 3 года назад

    hi
    i have issue with script
    Cannot convert value "20.05.2021 00:54:14" to type "System.DateTime". Error:

    • @SysDeskDev
      @SysDeskDev  3 года назад

      That is very interesting, I wonder where the T went separating the date form the Time. Is the T seen your debug file?

  • @FishFind3000
    @FishFind3000 3 года назад +3

    You could add this to pschiaplotter and give it the param yes or no for notifications for just the windows toast popup. Or maybe even the option to hardcore a discord webapp into the script and just enable/disable from params.

    • @SysDeskDev
      @SysDeskDev  3 года назад +1

      Yes absolutely, this could be integrated into the pschiaplotter for notifications for plotting summaries along with what is shown here. I still need to work on the core aspects of the plotter first though.

  • @John_Doe..
    @John_Doe.. 3 года назад

    Nice video

  • @igorpimenta3239
    @igorpimenta3239 3 года назад

    It is not possible to convert the value "20/05/2021 01:16:22" to the type "System.DateTime". Error: "String was not recognized as a valid DateTime."
    No C:\Users\xxxxx\AppData\Local\PSChiaWatchDog\New-ChiaHarvesterSummary.ps1: 15 characters: 9
    + $ _. Time = [datetime] $ _. Time
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId: InvalidCastParseTargetInvocationWithFormatProvider

    • @SysDeskDev
      @SysDeskDev  3 года назад

      I figured it out. Turns out Powershell defaults to US time format when casting from string. So there is no 20 month. I fixed the script to use the current culture. Let me know if that fixes the issue. Sorry about that.

    • @igorpimenta3239
      @igorpimenta3239 3 года назад

      @@SysDeskDev Yeap, it worked! Thanks!
      But I still have a problem. I practically copied your code, and searched everything and there is no error, but in the FilterRatio part, it appears like this:
      FilterRatio: 135966219572777 (random number just for example), appearing without a comma and with all these decimal places..
      Do you know what could be causing this?

  • @pabloalonso9083
    @pabloalonso9083 3 года назад

    I like your content even though i know very little of programming. I wonder why is it necessary to save the data into a csv file? Why not run the whole analysis in only one unified script ? Sorry if it is a terrible rookie question, but today i feel like asking 😅

    • @SysDeskDev
      @SysDeskDev  3 года назад +1

      Great questions! It is not necessary to store the data in a csv, but decided to store the results in a csv file for 2 reasons.
      1. You can access this later and have historical data if you want
      2. I was afraid of an ever expanding array being generated in powershell consuming more system resources, especially if ran for a long time. Now obviously the could be concern of the csv file ballooning over time as well but that would probably take a long time.
      As to your second question, why 2 script files. Generally speaking when you are programming you only want to have a method or a function to do one thing and one thing only, so when things break (which they always do) you can better pinpoint which piece of code you need to debug. It also makes the code more readable and allows for better automated testing. Now this doesn't strictly translate to scripts, as scripts are usually a combination of functions, but it is still good to break these up too (or at least I am condition to) for the same reason as mentioned above. If only the part where I generate the reports is broken then I don't need to run the entire script (gathering the activity events) to fix that part. I think it also makes the code more digestible and better organized. I hope this answers your questions :)

  • @MeatballCB
    @MeatballCB 3 года назад

    This is awesome as usual. Thanks! I am seeing an error getting thrown regarding the FarmerSummaryLog.csv not existing. Looks like you did add the Regex for the farmerlog and the block to parse through it. Not sure why it's not being created though. Edit: Ah, think I might have figured it out. Maybe that file isn't created until the first time it finds that match for the unfinished block?

    • @SysDeskDev
      @SysDeskDev  3 года назад

      Thank you! Ahh yes! Good catch and thank you for testing it out. I will update the scripts on the Github to fix this issue as soon as I can.

  • @suciuradudaniel6937
    @suciuradudaniel6937 3 года назад

    Hey, thank you for the video. I have a problem :( I try to ran the script and nothing is happening...

    • @SysDeskDev
      @SysDeskDev  3 года назад

      So the first script that you ran did not output a csv file? Is that folder empty "$ENV:LOCALAPPDATA\PSChiaWatchdog"?

    • @suciuradudaniel6937
      @suciuradudaniel6937 3 года назад

      @@SysDeskDev the first script outputs the csv file but the second script does nothing

    • @suciuradudaniel6937
      @suciuradudaniel6937 3 года назад

      @@SysDeskDev I press run with powershell and nothing happens

    • @SysDeskDev
      @SysDeskDev  3 года назад +1

      @@suciuradudaniel6937 oh I see! Thank you for additional info. You will need to run the script with the -$ToastNotification and/ -DiscordNotification
      so try opening up powershell and heading to the directory the script is at and running the script with those to switch parameters. I hope this helps!

  • @RougeSam
    @RougeSam 3 года назад

    love the content man. gui update?

    • @SysDeskDev
      @SysDeskDev  3 года назад

      GUI progress has been slow unfortunately, working on directory part of the job so that you can add multiple ssd's or hdd's to both temp and final directories like most other plotting managers. Then will just need to do some testing before releasing basically what will be the beta version. Thank you for the interest!

  • @asalumet
    @asalumet 3 года назад

    There is something wrong with FilterRatio part, i can't figure it out - ​ FilterRatio 152072723968594 | Proofs: 0 | Farmed: 0. FilterRatio is just a random number on notification window, it's correct in HarvesterSummaryLog.csv file. Do you know what is causing it?

    • @SysDeskDev
      @SysDeskDev  3 года назад

      Hmmm that is very strange. Are these lines present in the notification scirpts.
      $PassFilter = ($HarvesterEvents | Measure-Object -property FilterRatio -average).Average
      $message += "`nFilterRatio $([math]::Round($PassFilter,4))..."

    • @asalumet
      @asalumet 3 года назад

      @@SysDeskDev Yes, i haven't changed anything.

    • @sulemanesam3280
      @sulemanesam3280 3 года назад

      It has to do with the fact that cvs file is exported with "," as decimal seperator. I wrote in "(Get-Culture).NumberFormat.NumberDecimalSeparator = '.' " at the top of script to change that

    • @asalumet
      @asalumet 3 года назад

      @@sulemanesam3280 It works, Thank you!