Linux BASH script for sending to radmon.org

More
9 years 4 months ago #1263 by Hakunin
I modified Your script, adding parameters for no-parity and stop-bit (it did not work properly without it)
stty -F /dev/ttyUSB0 9600 -oddp -cstopb
I also suggest to add sleep 60 after exec ; )
Works fine on raspbian : ) Thank You!

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

More
9 years 4 months ago #1264 by GandalfDerGraue
Yeah, looks like there are a dozen of different connection methods and interface settings out there. Thanks for the update!

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

More
8 years 10 months ago #1720 by Limpynet
I have a problem with sending the information to radmon.org. I use the following script.



#!/bin/bash

stty -F /dev/ttyUSB0 9600 -oddp -cstopb
while read -r line < /dev/ttyUSB0
do

if (( $line > 0 )); then
echo CPM = $line
user="user"
password="password"
exec=`wget -O /dev/null "http://radmon.org/radmon.php?function=submit&user=$use$

else
echo CPM = 0

fi
done

No information is send to radmon.org. When i use Minicom to connect to my arduino i get a normal output from my geiger counter.

Does anyone know how to fix this problem.

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

More
8 years 10 months ago #1722 by OM1AMJ
What port settings do you have in minicom?
Try only stty -F /dev/ttyUSB0 9600
(without -oddp -cstopb)
This is what I use

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

More
8 years 10 months ago #1724 by Limpynet
With Minico i use the same setting. I tried to without -oddp -cstopb same problem

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

More
3 years 4 months ago #5842 by jardous
Great!
Is there any API to delete last X hours of data? I am currently developing a new client and logged some false data that mess up the graph...

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

Moderators: Gamma-Man
Time to create page: 0.164 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 45% Memory 22% Swap 70% CPU temp=51.6'C Uptime 72 Days