Python Forum
Python script in Ubuntu core
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python script in Ubuntu core
#1
Hi All,

Am not from a Programming background, but i need to test something like below and need your support

We have a Gateway running on Linux Ubuntu core from where we are collecting the data and storing it on the cloud which is supported by the software.

The Gateway is connected with a 4G LTE (4G sim) USB Dongle and connected to cloud.
Incase for some reason the connectivity gets disconnected the data logging shouldn't stop, so

1. Need to create a local MariaDB Mysql database for storing the data locally in Gateway hardware when network is down (should detect network is down and start storing it in DB)
2. Once the network is up and working again automatically the stored data in DB along with the current data logging should start copying back again to cloud.

Can someone support on this.
Other suggestions are also welcomed
Thanks.
Reply
#2
i'd just store it in the DB always and have a 2nd process extract the data and send it to the cloud and move along once it verifies the data is in the cloud. the 2nd process would keep on trying when the network connection goes down. a 3rd process would delete old data when the disk is nearly full. that way i'd have all the data in case of an accident with the cloud data.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,177 Jun-29-2023, 11:57 AM
Last Post: gologica
  Illegal instruction (core dumped) when import pandas. amandacstr 1 2,086 Dec-31-2022, 11:31 PM
Last Post: stevendaprano
  Python in Singularity Container on Ubuntu erdemath 0 902 Aug-31-2022, 02:17 PM
Last Post: erdemath
  Python icons in Ubuntu KatManDEW 4 72,909 Aug-12-2022, 08:33 AM
Last Post: rob101
  ImportError: /home/ali/Documents/test/charm/core/crypto/AES.cpython-39-x86_64-linux-g Anldra12 0 1,229 Apr-28-2022, 07:13 AM
Last Post: Anldra12
  Python 3.8 on Ubuntu 20.04 erdemath 1 1,366 Mar-07-2022, 09:31 PM
Last Post: Larz60+
  Segmentation fault (core dumped) hobbyist 1 10,472 Jun-07-2021, 12:56 PM
Last Post: supuflounder
  Python Program running a lot slower after change to Ubuntu hubenhau 1 2,876 Mar-02-2021, 05:01 PM
Last Post: Serafim
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,870 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,287 May-28-2020, 05:27 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020