Comments (12)
Hi!
The timezone is setup using your relative shift to UTC. i.e. for Argentina is -3.
from raspberry-noaa.
from raspberry-noaa.
Hi, I hope you don't mind me responding to this thread about another question. Didn't want to spam you with new ticket :)
I ran the script as root, was that a good call? As root I first did "cd $HOME" and then installed the script. This bit concerns me, running crontab -l shows:
1 0 * * * /home/pi/raspberry-noaa/schedule.sh
If I do nano or edit that path, it opens a new file. Meaning, it cannot find it. So I am not sure if it will work. The full path appears to be at:
~/raspberry-noaa/schedule.sh
So did I make a mistake by running as root? Is this script supposed to be installed from pi user?
Thank you!
edit:
Looks like that was the case, I had to run it as pi account instead! Now I've got several passes scheduled. Looking forward to seeing those images!
from raspberry-noaa.
Hi!
The script is intended to be run as pi
user
from raspberry-noaa.
Thanks! I realized that and installed it... however no files show in the browser under IP of the device. I ran it whole day and the following folders are empty:
Index of /image/2020/08/31/
Index of /image/2020/08/31/
Is there a log I can see failures in? I did some testing and I saw:
- when adding time zone, I couldn't do +2 or 2+, instead it only accepted "2" as a time zone. Is that correct? I'm in UTC+2.
- when testing "./test_reception.sh 90.3" it first didn't work, it would be "Canceled by user" because it was missing mp3 sox or something like that. After a little googling I fixed that dependency and installed it.
- I'm running the following raspios 2020-08-20-raspios-buster-armhf-lite - is this ok?
Thank you!
from raspberry-noaa.
Check the file sun.py
, your timezone must be inverted. If you are in +2 then timezone should be timezone = -2
from raspberry-noaa.
Just checked and it does show timezone = -2
however it only shows it when I enter 2
and not as +2
. If I enter 2 it will say synthax error. Not a big deal. In the meantime I reinstalled completely and I think there may be an issue when running as pi user and not root.
I ran test reception command and I get:
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
`The server is in testing mode tuned to 90.2 Mhz!
Open a terminal in your computer and paste:
ncat 202 8073 | play -t mp3 -`
Found 1 device(s): sox FAIL formats: no handler for given file type
mp3'
`0: , d??đ????~???v@P?v???v, SN: T??~pi?v``
Using device 0: Generic RTL2832U OEM usb_open error -3 Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules Failed to open rtlsdr device #0.
from raspberry-noaa.
In addition to my previous comment, running the cronjob shows a number of permission denied errors:
pi@raspberrypi:~/raspberry-noaa $ /home/pi/raspberry-noaa/schedule.sh
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
INFO : Pass prediction in progress
INFO : Pass prediction in progress
INFO : Pass is above 30, that is OK for me
METEOR-M2 20200901-200122 89
warning: commands will be executed using /bin/sh
job 1 at Tue Sep 1 20:01:00 2020
INFO : Pass prediction in progress
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
NOAA19 20200901-181417 83
warning: commands will be executed using /bin/sh
job 2 at Tue Sep 1 18:14:00 2020
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
NOAA18 20200901-212509 83
warning: commands will be executed using /bin/sh
job 3 at Tue Sep 1 21:25:00 2020
mkdir: cannot create directory ‘/var/www/wx/audio/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/meteor’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image/’: Permission denied
mkdir: cannot create directory ‘/var/www/wx/image’: Permission denied
NOAA15 20200901-190120 61
warning: commands will be executed using /bin/sh
job 4 at Tue Sep 1 19:01:00 2020
from raspberry-noaa.
Hi!
Seems like permissions were screwed up when schedule.sh ran with root user.
Do a
sudo chown -R www-data:www-data /var/www/wx/
to fix the permissions and try again
from raspberry-noaa.
That worked, thanks. I ran the schedule.sh as pi now and got the following output:
pi@raspberrypi:~ $ /home/pi/raspberry-noaa/schedule.sh
INFO : Pass prediction in progress
INFO : Pass prediction in progress
INFO : Pass prediction in progress
INFO : Pass is above 30, that is OK for me
METEOR-M2 20200902-194135 61
warning: commands will be executed using /bin/sh
job 5 at Wed Sep 2 19:41:00 2020
INFO : Pass prediction in progress
NOAA19 20200902-180235 79
warning: commands will be executed using /bin/sh
job 6 at Wed Sep 2 18:02:00 2020
NOAA18 20200902-112619 37
warning: commands will be executed using /bin/sh
job 7 at Wed Sep 2 11:26:00 2020
NOAA18 20200902-211323 66
warning: commands will be executed using /bin/sh
job 8 at Wed Sep 2 21:13:00 2020
NOAA15 20200902-183636 36
warning: commands will be executed using /bin/sh
job 9 at Wed Sep 2 18:36:00 2020
Not sure why it threw those permission denied errors the first time, when I ran it as pi (not as root at all before). This was on a clean install. Is there a specific version of raspbian, now called raspios, that you tested this script agains?
Anyway, it scheduled jobs and I'll wait to see the results.
Thank you for your help!
from raspberry-noaa.
I'm using Raspbian on my nodes
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
from raspberry-noaa.
Closing by inactivity
from raspberry-noaa.
Related Issues (20)
- [Error] in script installation HOT 2
- So the price I pay for being careless when I added some comments to the receiver_meteor.sh script before I posted is a syntax error on the meteor_demod command line. The corrected line should be this: HOT 1
- [Error] raspbian download HOT 2
- Mention Raspberry-Noaa V2
- No Twitter posting with actual (new) installation and (undefined global variables?)
- prune.sh appears to remove all images/thumbs HOT 2
- [Error] invalid literal for int() with base 10 in sun.py
- [Error] Preferred lanugage no permission denied
- [Error] No image output + audio sounds weird HOT 4
- [Error] HOT 1
- [Error] Meteor M2 has just turned off IR channel
- [Error] Meteor only showing timestamp HOT 2
- RTL E4000 support
- Display Meteor Spectrum using 128x64 SSD1306 OLED HOT 1
- [Error] - hardcoded paths using 'pi' user
- Where are the log files stored?
- Help - no weather on maps… where to start?
- passes are not being decoded.. not receiving any images[Error] HOT 1
- sharing one web panel for two noaa setups... How can this be done?
- (ERROR) Not enough space on RAM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberry-noaa.