{"id":21835253,"url":"https://github.com/dhi13man/electrometer","last_synced_at":"2026-04-12T05:31:31.756Z","repository":{"id":147488143,"uuid":"430178287","full_name":"Dhi13man/electrometer","owner":"Dhi13man","description":"A companion app made in Flutter to be used with my LoRA-WAN Electro meter project. Utilizes Firebase with Firestore as the backend with BLoC/MVVM Architecture pattern.","archived":false,"fork":false,"pushed_at":"2022-05-14T20:38:20.000Z","size":5428,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T15:32:55.286Z","etag":null,"topics":["bloc","dart","firebase","firestore","flutter","iot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dhi13man.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-20T18:21:54.000Z","updated_at":"2021-12-23T09:54:44.000Z","dependencies_parsed_at":"2023-07-24T20:31:12.539Z","dependency_job_id":null,"html_url":"https://github.com/Dhi13man/electrometer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dhi13man/electrometer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Felectrometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Felectrometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Felectrometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Felectrometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dhi13man","download_url":"https://codeload.github.com/Dhi13man/electrometer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Felectrometer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31705574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T05:11:36.334Z","status":"ssl_error","status_checked_at":"2026-04-12T05:11:27.332Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bloc","dart","firebase","firestore","flutter","iot"],"created_at":"2024-11-27T20:18:59.107Z","updated_at":"2026-04-12T05:31:31.751Z","avatar_url":"https://github.com/Dhi13man.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electrometer\n\n![coverage][coverage_badge]\n[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]\n[![License: MIT][license_badge]][license_link]\n\nA companion app to be used with my LoRA-WAN Electro meter project.\n\n---\n\n## Getting Started 🚀\n\nThis project contains 3 flavors:\n\n- development\n- staging\n- production\n\nTo run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:\n\n```sh\n# Development\n$ flutter run --flavor development --target lib/main_development.dart\n\n# Staging\n$ flutter run --flavor staging --target lib/main_staging.dart\n\n# Production\n$ flutter run --flavor production --target lib/main_production.dart\n```\n\n_\\*Electrometer works on iOS, Android, and Web._\n\n---\n\n## Running Tests 🧪\n\nTo run all unit and widget tests use the following command:\n\n```sh\nflutter test --coverage --test-randomize-ordering-seed random\n```\n\nTo view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov).\n\n```sh\n# Generate Coverage Report\n$ genhtml coverage/lcov.info -o coverage/\n\n# Open Coverage Report\n$ open coverage/index.html\n```\n\n---\n\n## Working with Translations 🌐\n\nThis project relies on [flutter_localizations][flutter_localizations_link] and follows the [official internationalization guide for Flutter][internationalization_link].\n\n### Adding Strings\n\n1. To add a new localizable string, open the `app_en.arb` file at `lib/l10n/arb/app_en.arb`.\n\n    ```arb\n    {\n        \"@@locale\": \"en\",\n        \"counterAppBarTitle\": \"Counter\",\n        \"@counterAppBarTitle\": {\n            \"description\": \"Text shown in the AppBar of the Counter Page\"\n        }\n    }\n    ```\n\n2. Then add a new key/value and description\n\n    ```arb\n    {\n        \"@@locale\": \"en\",\n        \"counterAppBarTitle\": \"Counter\",\n        \"@counterAppBarTitle\": {\n            \"description\": \"Text shown in the AppBar of the Counter Page\"\n        },\n        \"helloWorld\": \"Hello World\",\n        \"@helloWorld\": {\n            \"description\": \"Hello World Text\"\n        }\n    }\n    ```\n\n3. Use the new string\n\n    ```dart\n    import 'package:electrometer/l10n/l10n.dart';\n\n    @override\n    Widget build(BuildContext context) {\n    final l10n = context.l10n;\n    return Text(l10n.helloWorld);\n    }\n    ```\n\n### Adding Supported Locales\n\nUpdate the `CFBundleLocalizations` array in the `Info.plist` at `ios/Runner/Info.plist` to include the new locale.\n\n```xml\n    ...\n\n    \u003ckey\u003eCFBundleLocalizations\u003c/key\u003e\n    \u003carray\u003e\n    \u003cstring\u003een\u003c/string\u003e\n    \u003cstring\u003ees\u003c/string\u003e\n    \u003c/array\u003e\n\n    ...\n```\n\n### Adding Translations\n\n1. For each supported locale, add a new ARB file in `lib/l10n/arb`.\n\n    ```markdown\n    ├── l10n\n    │   ├── arb\n    │   │   ├── app_en.arb\n    │   │   └── app_es.arb\n    ```\n\n2. Add the translated strings to each `.arb` file:\n\n    `app_en.arb`\n\n    ```arb\n    {\n        \"@@locale\": \"en\",\n        \"counterAppBarTitle\": \"Counter\",\n        \"@counterAppBarTitle\": {\n            \"description\": \"Text shown in the AppBar of the Counter Page\"\n        }\n    }\n    ```\n\n    `app_es.arb`\n\n    ```arb\n    {\n        \"@@locale\": \"es\",\n        \"counterAppBarTitle\": \"Contador\",\n        \"@counterAppBarTitle\": {\n            \"description\": \"Texto mostrado en la AppBar de la página del contador\"\n        }\n    }\n    ```\n\n## Flutter Doctor Output\n\n```out\n[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1645], locale en-IN)\n    • Flutter version 2.10.5 at D:\\flutter\n    • Upstream repository https://github.com/flutter/flutter.git\n    • Framework revision 5464c5bac7 (2 weeks ago), 2022-04-18 09:55:37 -0700\n    • Engine revision 57d3bac3dd\n    • Dart version 2.16.2\n    • DevTools version 2.9.2\n\n[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)\n    • Android SDK at D:\\androidsdks\n    • Platform android-31, build-tools 30.0.2\n    • ANDROID_SDK_ROOT = D:\\androidsdks\n    • Java binary at: D:\\Program Files\\JetBrains\\apps\\AndroidStudio\\ch-0\\193.6626763\\jre\\bin\\java\n    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)\n    • All Android licenses accepted.\n\n[√] Chrome - develop for the web\n    • Chrome at C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\n\n[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.3)\n    • Visual Studio at D:\\Program Files\\Visual Studio\n    • Visual Studio Community 2019 version 16.8.30804.86\n    • Windows 10 SDK version 10.0.18362.0\n\n[√] Android Studio (version 4.0)\n    • Android Studio at D:\\Program Files\\JetBrains\\apps\\AndroidStudio\\ch-0\\193.6626763\n    • Flutter plugin version 51.0.1\n    • Dart plugin version 193.7547\n    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)\n\n[√] IntelliJ IDEA Ultimate Edition (version 2020.2)\n    • IntelliJ at D:\\Program Files\\JetBrains\\apps\\IDEA-U\\ch-0\\202.6397.94\n    • Flutter plugin can be installed from:\n       https://plugins.jetbrains.com/plugin/9212-flutter\n    • Dart plugin can be installed from:\n       https://plugins.jetbrains.com/plugin/6351-dart\n\n[√] VS Code (version 1.66.2)\n    • VS Code at C:\\Users\\dhi13man\\AppData\\Local\\Programs\\Microsoft VS Code\n    • Flutter extension version 3.38.1\n\n[√] Connected device (3 available)\n    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1645]\n    • Chrome (web)      • chrome  • web-javascript • Google Chrome 100.0.4896.127\n    • Edge (web)        • edge    • web-javascript • Microsoft Edge 100.0.1185.50\n\n[√] HTTP Host Availability\n    • All required HTTP hosts are available\n\n• No issues found!\n```\n\n[coverage_badge]: coverage_badge.svg\n[flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html\n[internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_link]: https://opensource.org/licenses/MIT\n[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg\n[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis\n[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Felectrometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhi13man%2Felectrometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Felectrometer/lists"}