Welcome, Guest
Username: Password: Remember me

TOPIC: Linux BASH script for sending to radmon.org

Linux BASH script for sending to radmon.org 2 years 2 months ago #1263

  • Hakunin
  • Hakunin's Avatar
  • OFFLINE
  • New Member
  • Posts: 2
  • Karma: 0
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!
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 2 years 2 months ago #1264

  • GandalfDerGraue
  • GandalfDerGraue's Avatar
  • OFFLINE
  • New Member
  • Posts: 9
  • Thank you received: 2
  • Karma: 0
Yeah, looks like there are a dozen of different connection methods and interface settings out there. Thanks for the update!
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 1 year 8 months ago #1720

  • Limpynet
  • Limpynet's Avatar
  • OFFLINE
  • New Member
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
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.
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 1 year 8 months ago #1722

  • OM1AMJ
  • OM1AMJ's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 38
  • Thank you received: 19
  • Karma: 5
What port settings do you have in minicom?
Try only stty -F /dev/ttyUSB0 9600
(without -oddp -cstopb)
This is what I use
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 1 year 8 months ago #1724

  • Limpynet
  • Limpynet's Avatar
  • OFFLINE
  • New Member
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
With Minico i use the same setting. I tried to without -oddp -cstopb same problem
The administrator has disabled public write access.
Time to create page: 0.186 seconds
Powered by Kunena Forum