thingspeak/README.md

74 lines
3.3 KiB
Markdown
Raw Normal View History

2023-05-19 08:32:43 +02:00
# ThingSpeak
2011-03-27 22:53:05 +02:00
2023-05-19 08:32:43 +02:00
[ThingSpeak](https://thingspeak.com) ist eine OpenSource "Internet of Things" Anwendung und API, mit der Daten von "Dingen" per HTTP über das Internet (oder LAN) empfangen und gespeichert werden können. Mit ThingSpeak, kann man verschiedene Anwendungen erstellen, die Sensor-Daten speichern, Standortdaten verwenden oder ein "soziales Netzwerk der Dinge" mit Status Updates versorgt.
Dieser Fork ist dazu gedacht, auf einem eigenen Debian 11 - Server installiert zu werden.
2011-03-28 01:10:22 +02:00
In addition to storing and retrieving numeric and alphanumeric data, the ThingSpeak API allows for numeric data processing such as timescaling, averaging, median, summing, and rounding. Each ThingSpeak Channel supports data entries of up to 8 data fields, latitude, longitude, elevation, and status. The channel feeds support JSON, XML, and CSV formats for integration into applications.
The ThingSpeak application also features time zone management, read/write API key management and JavaScript-based charts from Highslide Software / Torstein Hønsi.
2014-07-23 02:27:34 +02:00
Support for ThingSpeak is available on the "ThingSpeak Community":http://community.thingspeak.com/ site which features a "Blog":http://community.thingspeak.com/, "Forum":http://community.thingspeak.com/forum/, "Documentation":https://thingspeak.com/docs, and "Tutorials":https://thingspeak.com/docs/tutorials/.
2011-03-28 03:29:24 +02:00
2023-05-19 08:32:43 +02:00
### Before You Begin
2011-03-27 22:54:00 +02:00
2014-02-17 18:11:18 +01:00
1. Install Ruby 2, RubyGems, Rails 4, git, and a database like MySQL
2. Download the application using git: git clone git@github.com:iobridge/thingspeak.git
3. Change to the thingspeak directory and install the appropriate gems: sudo bundle install
2011-03-27 22:53:05 +02:00
2023-05-19 08:32:43 +02:00
### Configuration
2011-03-27 22:54:00 +02:00
2011-03-27 22:53:05 +02:00
1. Set your database configuration file at config/database.yml (see config/database.yml.example for an example)
2. Create the database: rake db:create
2011-03-28 02:04:02 +02:00
3. Create the database tables: rake db:schema:load
2011-03-27 22:53:05 +02:00
2023-05-19 08:32:43 +02:00
### Run The Application
2011-03-27 22:54:00 +02:00
2011-03-27 22:53:05 +02:00
1. Start the server: rails server
2011-03-28 05:30:55 +02:00
2023-05-19 08:32:43 +02:00
Your application will now be running at ```http://localhost:3000/```
2011-03-27 22:53:05 +02:00
2023-05-19 08:32:43 +02:00
## Changing Application Text
2011-03-27 22:54:00 +02:00
2011-03-27 22:53:05 +02:00
Make changes to config/locales/en.yml
To avoid errors, please ensure your lines start with spaces, not tabs.
Set your application name using the 'application_name' key.
2023-05-19 08:32:43 +02:00
## (Optional) Email Setup
2011-03-27 22:54:00 +02:00
2011-03-27 22:53:05 +02:00
Set your domain, user_name, and password in config/environment.rb
2011-03-29 02:28:18 +02:00
2023-05-19 08:32:43 +02:00
## (Optional) Admin Setup
2014-10-28 22:50:22 +01:00
2023-05-19 08:32:43 +02:00
Open a rails console: ```rails console``` or ```RAILS_ENV=production rails console```, depending on your environment
Add the admin user: ```AdminUser.create!(email: 'YOUR_ADMIN_EMAIL@EXAMPLE.COM', password: 'YOUR_PASSWORD', password_confirmation: 'YOUR_PASSWORD')```
Exit the rails console: ```exit```
2014-10-28 22:50:22 +01:00
Login via the admin web interface at: "http://YOUR_DOMAIN.COM/admin"
2023-05-19 08:32:43 +02:00
# Installation on clean install of Ubuntu 12.04 LTS
```
sudo apt-get upgrade
sudo apt-get -y install build-essential mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev git-core curl rubygems
\curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.1
git clone https://github.com/iobridge/thingspeak.git
cd thingspeak
bundle install
cp config/database.yml.example config/database.yml
rake db:create
rake db:schema:load
rails server
```
# Upgrading existing installations
```
git pull origin master
bundle install
rake db:migrate
```
2014-05-08 22:30:59 +02:00
If your server is active you can restart it by going to the active terminal, hitting Ctrl-c, and then typing:
2023-05-19 08:32:43 +02:00
```rails server```
2014-05-08 22:30:59 +02:00