Go to advanced search

by stavrosdee
Tue Jun 03, 2014 9:49 am
Forum: General discussion
Topic: Upload data to server when online
Replies: 5
Views: 2376

Re: Upload data to server when online

Sometimes the network may not be available, but I don't want to loose data then. Therefore I am thinking of saving the data locally, and then check if the system is online. When online, to send the data again.
But I am not sure HOW to check if the system is online. Thanks
by stavrosdee
Mon Jun 02, 2014 8:03 pm
Forum: General discussion
Topic: Upload data to server when online
Replies: 5
Views: 2376

Re: Upload data to server when online

At the moment I am using this code to save the data and send them to Xively. I don't understand how to upload them ONLY when the system is online. Any examples I could look at? Thanks import os import xively import subprocess import time import datetime import requests FEED_ID = "xxx" API_KEY = "xxx...
by stavrosdee
Sun Jun 01, 2014 12:34 am
Forum: General discussion
Topic: Upload data to server when online
Replies: 5
Views: 2376

Upload data to server when online

Hi. I am using a Raspberry Pi to log some sensor activity. However, I would like to do the following: - Store the captured data locally in a file (whenever a new entry appears) - Check to see if network is available - If network is available, upload the new data on the server However, I am not sure ...

Go to advanced search