{"id":17077883,"url":"https://github.com/seblucas/firebase-sensor","last_synced_at":"2025-04-12T20:24:08.795Z","repository":{"id":37458337,"uuid":"44993519","full_name":"seblucas/firebase-sensor","owner":"seblucas","description":"Web based sensor reading app","archived":false,"fork":false,"pushed_at":"2023-01-08T15:17:47.000Z","size":3115,"stargazers_count":3,"open_issues_count":22,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T14:41:33.406Z","etag":null,"topics":["firebase","iot","vue-test-utils","vuejs"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seblucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-26T19:56:17.000Z","updated_at":"2023-01-04T20:09:56.000Z","dependencies_parsed_at":"2023-02-08T06:30:38.586Z","dependency_job_id":null,"html_url":"https://github.com/seblucas/firebase-sensor","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seblucas%2Ffirebase-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seblucas%2Ffirebase-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seblucas%2Ffirebase-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seblucas%2Ffirebase-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seblucas","download_url":"https://codeload.github.com/seblucas/firebase-sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248626873,"owners_count":21135749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","iot","vue-test-utils","vuejs"],"created_at":"2024-10-14T12:17:35.486Z","updated_at":"2025-04-12T20:24:08.768Z","avatar_url":"https://github.com/seblucas.png","language":"Vue","readme":"﻿# Firebase based temperature / humidity logger\n\n[![Build Status](https://www.travis-ci.org/seblucas/firebase-sensor.svg?branch=master)](https://www.travis-ci.org/seblucas/firebase-sensor) [![Coverage Status](https://coveralls.io/repos/github/seblucas/firebase-sensor/badge.svg?branch=master)](https://coveralls.io/github/seblucas/firebase-sensor?branch=master)\n\n## The idea\n\nThe idea came from [Tim Hodson](https://github.com/timhodson/rpi-sensor-station) who [blogged about it](http://timhodson.com/2014/04/rpi-sensor-network-collecting-the-data/) some time ago. So huge thanks to him.\n\n## Firebase\n\n### My goal\n\nMy goals were simple:\n * No limit in the number of sensors.\n * Adding a new sensor should only mean to modify a little the database and upload the readings but **never** change a single line of the Web UI.\n\n### Structure\n\nIt was kind of hard for me to structure the base as I'm more used to relationnal databases. I ended up doing this :\n\n```\nroot\n  errors\n    GUID\n      time\n      message\n  readingCategories\n    [hum|lum|temp]\n      fractionSize\n      label\n      order\n      unit\n  readings\n    room_id\n      GUID\n        time\n        temp\n        hum\n        lum\n  rooms\n    room_id\n      label\n      color\n      icon\n      readings\n        temp\n        hum\n        lum\n```\n\n### Security\n\nTODO\n\n### Todo\n\nI'll probably add the battery level of some sensors, that will mean changing the database structure and the Web UI.\n\n## The Web UI\n\n### How does it look ?\n\n![Image](firebase-sensor.png)\n\n### How do I make this work\n\nEasy :\n * Get latest [release](https://github.com/seblucas/firebase-sensor/releases) and decompress it on your webserver\n * Deploy it to you firebase hosting.\n * Access it.\n\n## Sending values to Firebase\n\nTODO\n\n## Monitoring\n\nI wanted to make sure to be notified if no new data are added to Firebase (because I lost my Internet connection or a crash happenned).\n\nSo I created a Cloud function `monitor` to check the time of the last child of most of my reading . I simply compare the node's date with the current date and output a JSON object with the status.\n\nThe only thing left is to add a keyword monitor to [UptimeRobot](http://uptimerobot.com/).\n\n## Licence\n\nAs stated in the LICENCE file, everything here is licensed under the GPL V2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseblucas%2Ffirebase-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseblucas%2Ffirebase-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseblucas%2Ffirebase-sensor/lists"}