Home Forum Software New Firmware enables rrdtool graphing.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1424
    Radu
    Keymaster

    Great stuff, I just promoted it to sticky. Thanks for sharing!

    #1428
    Bjorn Roesbeke
    Participant

    Where is the rrdscript variable used?

    #1434
    shogunx
    Participant

    Good eye, Bjorn. It appears to be declared, but unused. I just checked the directory, and there is no output to it. Perhaps Pixel had intended a use for it, but never implemented the function.

    #1435
    Pixel_K
    Participant

    Nice work, yes the value position shifted in the latest firmware (which added a missing comma), hence the additional modifications.

    you can delete the rrdscript line, it’s a leftover from earlier script version.

    I would use a while loop instead a recursive call, which is a bad practice in this case.

    #1436
    shogunx
    Participant

    Hi Pixel_K. Thank you, nice work yourself. Ack on the rrdscript line, and I understand the versioning problem on the cut arguments. Sure, while loop is cleaner. Cron is cleaner too, actually. I just wanted to leave the shell attached to an xterm, so I could watch the data as it comes in. Having scratched my itch, I decided that was good enough. Want to use this thread like a version control system, with the latest code revisions in the most recent posts?

    Ideally we could have the script act like an installer on the first run as well, asking the user what ip address the urad is on, where to store the data, etc. It could even test for curl and rrdtool on debian based derivatives (and likely others) and prompt an apt-get install of those if not present. I only say this because there will be a great many not so technical users, and we want to be able to collect data from their devices as well.

    #1444
    Radu
    Keymaster

    shogunx, for something as useful as this, let me know if you would like to do the version control in a blog post instead.

    #1486
    shogunx
    Participant

    That is probably a good idea.

    #1487
    Pixel_K
    Participant

    I still have to update mine to #111, but that’s a great idea, so the script can live it’s own life.

    #1488
    Radu
    Keymaster

    Scott, your account should now be able to write blog posts. Feel free to give it a try!

    #2058

    Meanwhile I’ve done my own implementation but written in Perl.

    Some key features are:
    – automatic conversion to uSv/h when generating the graphs (the conversion is done using the appropriate factor for the detector present in the device);
    – works with model A2 (pressure graphs).

    You can find it on GitHub.

    Also you can view the live graphs from my uRADMonitor device readings here.

    #2060
    Radu
    Keymaster

    Hi Nox, that’s another excellent contribution, thanks for sharing!

    As offered to the other guys, would you be interested in presenting your SW setup in a blog article, with backlinks to your website, I can update your account accordingly. Let me know.

    #3471
    Nicolas_Daly
    Participant

    Hi,

    Excellent post. I used to be mad about graphing everything and this is a good excuse to get back to it.

    I’ve gone for a 60 second step and added a trend of 2 Hours on the daily graph

    	 CDEF:trend_cpm=cpm,7200,TREND \
                    AREA:cpm#00CCCC:"Count Per Minute\g" \
                            GPRINT:cpm:MAX:" Maximum \: %5.1lf " \
                            GPRINT:cpm:AVERAGE:" Average \: %5.1lf " \
                            GPRINT:cpm:LAST:" Current \: %5.1lf \l"  \
    		  LINE2:trend_cpm#000000:"Count Per Minute Trend 2 Hour\g"   
    #3472
    Nicolas_Daly
    Participant

    Excuse the double post. I’ve found the odd time when curl requests hang so may I suggest changing

    jsondata=$( /usr/bin/curl -s $URL );
    to
    jsondata=$( /usr/bin/curl -s $URL --max-time 5 --retry 10 --retry-delay 1);

    #4541
    Urs Wirthmueller
    Participant

    The script looks great.

    Would it be possible to adapt it to the A3 model?

    Also – as I suppose the script does download the data locally. Is it possible to download those data from the uradmonitor server including the credentials in the script?

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.