Linux BASH script for sending to radmon.org

More
9 years 1 month ago #713 by lp
Got everything connected and ready to test with the Arduino Mega + Dragino shield.
Should be possible to run a CURL command with the following url " http://radmon.org/radmon.php?function=submit&user=me&password=5555&value=32&unit=CPM" , but if I try this on a browser radmon returns: "Incorrect".

Is the radmon server working or am I missing something?

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #714 by mw0uzo
That should work, you probably have the password wrong. PM reminder sent.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #715 by lp
Yes, I had the password wrong, forgot it was a different one from the login. Thanks mw0uzo.
Soon we will have this station in South Norway 24h day!

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #966 by GandalfDerGraue
Here is a shell script which is under GPL License, probably running on any linux shell (for example "bash" and others, even on "sh") but it requires also "cut" and "wget". It should run on almost any router (openWRT etc.), raspberry/ banana-pi and so on.

Just upload it to the target host from here:


File Attachment:

File Name: radmon.sh
File Size:7 KB



The script won't need special access rights for webfrontend device access, so you can run it under almost any user on the system. If you use it to provide data from a serial device you'll of course need access rights for the serial tty your device is attached to.

Currently it supports devices that do output the radiation readings directly on serial console plus the uradmon.com device that gerates JSON output web page. If you have a device that won't work with the script please feel free to contact me and let's see if it can be integrated into the script. It is grown quite a bit but does not use much resources if running on small devices.

I hope you'll find it useful. Have a lot of fun!
Attachments:
Last edit: 8 years 11 months ago by GandalfDerGraue. Reason: gzipped attachements won't work ;)
The following user(s) said Thank You: mw0uzo, OM1AMJ

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #974 by mw0uzo
Great to see it all working at last!
Does the attachment work if the file is zipped up? (I have also just added .sh as an allowed extension.)
Last edit: 8 years 11 months ago by mw0uzo.
The following user(s) said Thank You: GandalfDerGraue

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #978 by GandalfDerGraue
Hi Dan,

I had tried gzipped file before which did not work. I now uploaded uncompressed file (7kB size, that should still be OK, I hope) and now it did work with the extent ".sh". Normally I don't use such MS-DOS'ish name extensions, but at least uploading the file works now. ;)
Gnu-zipped files as usually used in linux environments don't work with the ".gz" extent.

Thank you! :cheer:

With kind regards,
Wolfgang
Last edit: 8 years 11 months ago by GandalfDerGraue.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.202 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 57% Memory 14% Swap 11% CPU temp=54.5'C Uptime 19 Days