Page 1 of 1
Pro Red Backup not working
Posted: Fri Aug 14, 2020 3:19 pm
by woolfg
Hi
I have a Meteobridge Pro Red
I have inserted a USB Stick into the front for backups
I have also set up a service as shown

- Backup.jpg (36 KiB) Viewed 2996 times
I get the following error

- backup1.jpg (21.79 KiB) Viewed 2996 times
Any idea what might be wrong
Thanks
Graham
Re: Pro Red Backup not working
Posted: Fri Aug 14, 2020 4:48 pm
by BigAlT
See the earlier post (
viewtopic.php?f=61&t=15005 ).
Re: Pro Red Backup not working
Posted: Fri Aug 14, 2020 5:33 pm
by woolfg
Hi
Yes i have read that but it hasnt helped
I have formatted my USB stick to FAT32 and put it in the front USB socket
Rebooted Pro
Logged in using Putty this is what I see

- Putty.jpg (87.54 KiB) Viewed 2982 times
My USB drive is 8Gb and I dont think it is showing
I dont want to change the backup.sh script unless I need to,
Regards
Graham
Re: Pro Red Backup not working
Posted: Fri Aug 14, 2020 7:20 pm
by woolfg
Hi
I cannot get my Pro Red to see either the front or rear USB devices
They dont show when I do df -h
Am I missing something here ?
Any help much appreciated
Thanks
Graham
Re: Pro Red Backup not working
Posted: Tue Aug 18, 2020 11:02 pm
by admin
USB stick needs to be partitioned with one FAT32 partition, as they come from manufacturer.
Backups only work, when you are using the internal USB as base storage media.
Not sure what you are trying to do on the linux command shell. External USB stick is just mounted for backup process and unmounted after that to allow for pulling out. As you see, this is all a bit more sophisticated as it looks from a standard linux user perspective

Re: Pro Red Backup not working
Posted: Tue Aug 18, 2020 11:12 pm
by woolfg
Hi
Thanks for the reply
I have formatted it to FAT32
Its plugged into the rear port
I have created the service as shown but still getting no target media found
I really dont know what else to do
Regards
Graham
Re: Pro Red Backup not working
Posted: Wed Aug 19, 2020 8:37 am
by admin
It needs to by partitioned with one partition (/dev/sda, /dev/sda1 in linux terms) and the partition (/dev/sda1) needs to be formatted as FAT32.
Please also try with the front USB port.
Re: Pro Red Backup not working
Posted: Wed Aug 19, 2020 10:33 am
by woolfg
Hi
Front port now works
I dont know why the rear port didnt though
Regards
Graham
Re: Pro Red Backup not working
Posted: Wed Aug 19, 2020 11:49 am
by woolfg
Hi
Now I have the front USB stick working and saving backups can someone tell me how I can access the USB stick over my network using Windows 10
I can see my data folders but not the backups on USB
I would like to be able to copy the backups to a drive on my windows pc
Kind Regards
Graham
Re: Pro Red Backup not working
Posted: Wed Aug 19, 2020 12:42 pm
by admin
The content of the USB stick is not shared via SMB as the stick gets unmounted when backup is done.
Re: Pro Red Backup not working
Posted: Wed Aug 19, 2020 3:13 pm
by galfert
For weather data backup to PC I recommend setting up a mySQL database or compatible database like MariaDB. Then the Meteobridge can send the data over the network to your PC. But the PC will need to be running 24/7. For this reason the PC should be something like a Raspberry Pi or a NAS or some other device that was designed to run well 24/7.
Here is a good write up to show you how to start:
https://www.stevejenkins.com/blog/2015/ ... teobridge/
I highly recommend you become familiarized with the way to manage data variables so that you can send data to your database in exactly the way you want:
https://www.meteobridge.com/wiki/index.php/Templates
Below is the mySQL query on my Meteobridge that I send to my MariaDB running on my Synology NAS. I have some customization to deal with a PM2.5 sensor that tends to sometimes catch me off guard when its battery charge runs out so I put in a condition so that I can continue to get all the other data. I'm sending the data in imperial units but you could make it all metric if you prefer:
Code: Select all
INSERT INTO `mystation` (`ID`, `DateTime`, `TempOutCur`, `HumOutCur`, `PressCur`, `DewCur`, `HeatIdxCur`, `WindChillCur`, `TempInCur`, `HumInCur`, `WindSpeedCur`, `WindAvgSpeedCur`, `WindDirCur`, `WindDirCurEng`, `WindGust10`, `WindDirAvg10`, `WindDirAvg10Eng`, `RainRateCur`, `RainDay`, `RainYest`, `RainMonth`, `RainYear`, `UV`, `Solar`, `PM2.5`) VALUES (NULL, '[YYYY]-[MM]-[DD] [hh]:[mm]:[ss]', '[th0temp-act=F]', '[th0hum-act]', '[thb0seapress-act=inHg.2]', '[th0dew-act=F]', '[th0heatindex-act=F]', '[wind0chill-act=F]', '[thb0temp-act=F]', '[thb0hum-act]', '[wind0wind-act=mph]', '[wind0avgwind-act=mph]', '[wind0dir-act]', '[wind0dir-act=endir]', '[wind0wind-max10=mph]', '[wind0dir-avg10]', '[wind0dir-avg10=endir]', '[rain0rate-act=in.2]', '[rain0total-daysum=in.2]', '[rain0total-ydaysum=in.2]', '[rain0total-monthsum=in.2]', '[rain0total-yearsum=in.2]', '[uv0index-act]', '[sol0rad-act]', CASE '#if#{*[air0pm-age:999]<300*}#then#GOOD#else#BAD#fi#' WHEN 'GOOD' THEN '[air0pm-max5=.0]' ELSE NULL END)