cloudy cloudy

Author Topic: Raspberry PI 3+ Auto startup of consolewd  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Offline [email protected]

  • Posts: 3
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Raspberry PI 3+ Auto startup of consolewd
« on: July 15, 2018, 01:06:08 PM »
Hi all
From time to time we have, as you also experience, main power failure just for a short period of time (some minutes) at any hour of the day. This causes my Raspberry PI 3+ to reboot and as of today the consoledwd to stop. This is an unwanted status in a 24/7 operation.

Yes, I know, get yourself an UPS problem solved. This is meant to be a low budget and place saving project and there for a UPS will not be an option here. The Raspberry PI 3+ platform is perfect for this kind of operation in many ways.

What I need to solve is that the wdconsoled must start automatically after the Raspberry PI 3+ boot up and update all the services that are configured for the wdconsoled.

I have been looking around to find a solution this issue. So far, I have not find any solution just partial solutions. I found one that I could use but this configuration does not update the metiotemplate and the wunderground services only the files for the GUI WD PI 1.5. Under a short description how I set it up. Maybe someone can help me to adjust the configuration to make it work.

This is how I set it up
1.   In folder /etc/systemd/system i created a text file with name wdautoupdate.service
2.   In the wdautoupdate.service I enter the following information;

[Unit]
Description=WD console autostart
[Service]
ExecStart=/home/pi/Desktop/consolewdfiles/consolewd
[Install]
WantedBy=multi-user.target

3.   To start the daemon service, I enter this command in console mode;

sudo systemctl start wdautoupdate

Everything looks OK cheeked by the command; sudo systemctl status wdautoupdate

4.   The next step is to make the daemon service wdautoupdate to automatically start up during boot up of the PI. To do that I enter this command in console mode;

sudo systemctl enable wdautoupdate

To test I rebooted the PI. The daemon service wdautoupdate was running OK

5. The result of this configuration was;
    1. The consolewd service started and updated the files for GUI WD PI Version 1.5 No problem.
    2. But consolewd did not update metiotemplate and wunderground no data where uploaded.

My question is what can be done to this configuration do to make this work?
It is vital that consolewd are updating the metiotemplate and wunderground as well as the update of the GUI WD PI files (the update of GUI WD PI files works OK).

Is there anyone that out there that can help me?

Best Regards
Dag Engstrøm

Offline Weather Display

  • Posts: 87,468
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
    • Weather Display
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #1 on: July 16, 2018, 04:46:27 PM »
do you mean you have wdpi starting up OK?
that is just a client program
you need consolewd starting up..that is the main program, that gets the data, etc

Offline [email protected]

  • Posts: 3
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #2 on: July 19, 2018, 09:09:36 PM »
Hi
consolewd are starting up but it only update the clientraw files it do not update the external services like the metotemplate

Offline Weather Display

  • Posts: 87,468
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
    • Weather Display
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #3 on: July 19, 2018, 10:14:17 PM »
it might then be a permissions problem i.e it does not have permission to run a program (i.e the cron programs)

Offline [email protected]

  • Posts: 3
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #4 on: July 20, 2018, 02:10:58 PM »
OK
How do I fix the permission issue? I'm all new to Linux. :D
Best Regards
Dag :D

Offline staccermaccer

  • Posts: 229
  • Antwerp,Belgium
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Weather in Ekeren and Harbour of Antwerp
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #5 on: August 08, 2018, 04:16:12 PM »
Hello, Dag

Youjust need to configure your config.txt, i give you an example in the attachment...

Marc,
« Last Edit: August 08, 2018, 04:19:39 PM by staccermaccer »

Offline staccermaccer

  • Posts: 229
  • Antwerp,Belgium
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Weather in Ekeren and Harbour of Antwerp
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #6 on: August 08, 2018, 04:23:18 PM »
Here are the permissions…..

Offline dunbrokin

  • Posts: 317
  • Otago
  • OS/Browser:
  • (Linux Mint)
  • Chrome 56.0.2924.84
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #7 on: January 02, 2019, 05:39:43 AM »


¨Everything looks OK cheeked by the command; sudo systemctl status wdautoupdate

4.   The next step is to make the daemon service wdautoupdate to automatically start up during boot up of the PI. To do that I enter this command in console mode;

sudo systemctl enable wdautoupdate

To test I rebooted the PI. The daemon service wdautoupdate was running OK¨

This is what I get when I follow this instruction....note mine is in directory Documents and not Desktop.

[email protected]:/ $ sudo systemctl start wdautoupdate
[email protected]:/ $ sudo systemctl status wdautoupdate
● wdautoupdate.service - WD console autostart
   Loaded: loaded (/etc/systemd/system/wdautoupdate.service; disabled)
   Active: active (running) since Wed 2019-01-02 18:34:46 NZDT; 20s ago
 Main PID: 2654 (consolewd)
   CGroup: /system.slice/wdautoupdate.service
           └─2654 /home/pi/Documents/consolewdfiles/consolewd

Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Jan 02 18:34:48 Weatherpi consolewd[2654]: ser_read error Resource temporari...e
Hint: Some lines were ellipsized, use -l to show in full.

What have I done wrong?


Ubuntu is computer speak for defenestration.

Offline dunbrokin

  • Posts: 317
  • Otago
  • OS/Browser:
  • (Linux Mint)
  • Chrome 56.0.2924.84
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #8 on: January 02, 2019, 05:45:32 AM »
ExecStart=/home/pi/Desktop/consolewdfiles/consolewd

is this the correct path....does this not imply that consolewd is another frolder and not a file?
Ubuntu is computer speak for defenestration.

Offline Weather Display

  • Posts: 87,468
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #9 on: January 03, 2019, 07:12:45 PM »
I think its a Davis station you have?
it might be that you might need to delay the start up of consolewd to allow the usb/serial drivers to have loaded etc?

Offline dunbrokin

  • Posts: 317
  • Otago
  • OS/Browser:
  • (Linux Mint)
  • Chrome 71.0.3578.80
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #10 on: January 05, 2019, 03:53:06 AM »
Problem sorted thanks!
Ubuntu is computer speak for defenestration.

Offline unterix

  • Posts: 4
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
Re: Raspberry PI 3+ Auto startup of consolewd
« Reply #11 on: February 05, 2019, 06:30:58 PM »
Hi Dunbrokin,
I have the same problem as you following your method. None of the cron services are updated (wunderground, cwop, pws ...). How did you solve your problem? Thank you !

 

cumulus