Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lintangwisesa/vue-chartjs-favoriot-api
A simple Favoriot data visualization using Vue & Chartjs
https://github.com/lintangwisesa/vue-chartjs-favoriot-api
chartjs data-visualization favoriot vue
Last synced: 6 days ago
JSON representation
A simple Favoriot data visualization using Vue & Chartjs
- Host: GitHub
- URL: https://github.com/lintangwisesa/vue-chartjs-favoriot-api
- Owner: LintangWisesa
- Created: 2019-08-06T09:53:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:25:50.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T10:27:12.610Z (over 1 year ago)
- Topics: chartjs, data-visualization, favoriot, vue
- Language: Vue
- Homepage: https://youtu.be/HPVOroKjDZE
- Size: 1.14 MB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![simplinnovation](https://4.bp.blogspot.com/-f7YxPyqHAzY/WJ6VnkvE0SI/AAAAAAAADTQ/0tDQPTrVrtMAFT-q-1-3ktUQT5Il9FGdQCLcB/s350/simpLINnovation1a.png)
# Favoriot Data Visualization Using Vue & Chart.js
[![Video Lintang](https://img.youtube.com/vi/HPVOroKjDZE/0.jpg)](https://www.youtube.com/watch?v=HPVOroKjDZE)
1. Make sure [__*Node.js*__](https://nodejs.org/en/) is installed on your PC, then simply download or clone this repo and install all dependencies:
```bash
$ git clone https://github.com/LintangWisesa/Vue-Chartjs-Favoriot-API.git$ cd Vue-Chartjs-Favoriot-API
$ npm install
```#
2. Open your code editor (I'm using [__*Visual Studio Code*__](https://code.visualstudio.com/)), insert your __*Favoriot API key*__ and __*Favoriot device developer ID*__ to the __components/favoriotChart.vue__ file!
- __*API key*__ goes to request headers:```javascript
var headers = {
headers: {
'Content-Type': 'application/json',
'apikey': 'your_API_key'
}
}
```- __*Device developer ID*__ goes to request headers:
```javascript
var dataBody = {
device_developer_id: "your_device_developer_id",
data: {
Temperature: this.$refs.temp.value,
Humidity: this.$refs.hum.value,
Potentio: this.$refs.pot.value,
}
}
```
#3. Run the project!
```bash
$ npm run serve
```The app will be run automatically on http://localhost:8080/. Try to POST some data & GET the data back from Favoriot!
![screenshot](./screenshot.png)
Enjoy your code~ 😍
#
#### Lintang Wisesa :love_letter: [email protected]_
[Facebook](https://www.facebook.com/lintangbagus) |
[Twitter](https://twitter.com/Lintang_Wisesa) |
[Google+](https://plus.google.com/u/0/+LintangWisesa1) |
[Youtube](https://www.youtube.com/user/lintangbagus) |
:octocat: [GitHub](https://github.com/LintangWisesa) |
[Hackster](https://www.hackster.io/lintangwisesa)