GithubHelp home page GithubHelp logo

philgrunewald / meterapp Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 11.39 MB

Activity app collecting time use codes

Home Page: http://www.energy-use.org

CSS 4.06% HTML 9.24% JavaScript 86.57% TeX 0.13%

meterapp's People

Contributors

dme26 avatar gozzilli avatar jessicabernardp avatar marvingleue avatar philgrunewald avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dme26 mattm401

meterapp's Issues

Return to "Home" after 'Enjoyment'

Is there a way to trigger
app.showActivityList();
after clicking on 'enjoyment' screen?
if !enjoyment app.navigateTo(x)
else app.showActivityList()?

I think that would make a good landing screen to give a sense 'this activity has been noted'.

Review screen

Show all logged activities with option to edit and add.

navigateTo home > assumes activity (even when from Survey)

last survey entry return to "home"

we assumed that coming "home" has an activity to store. This is not the case when arriving from the end of the survey.

Needs separate handling (currently the most recent activity gets added every time you complete the survey - if no activity in the buffer, home screen can't populate the list...)

read MetaID

I now store a file
/sdcard/METER/id.txt
on phones as part of the setup.
We should read the number in this file and append it to each line in the csv files.

Android 9+ ClearText network error

Issue:
ClearText error on Android 9 device.

image

Error is also visible in console when inspecting and seems like it's not limited to just the consent page. This means it might not be sending data to the server.

Android 9+ disables ClearText traffic by default: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted

Possible fixes:

  1. Change all url calls to https and add https support to the server
    or
  2. If cleartext traffic is desired, you can add the following to the <platform name="android">...</platform> tag which is in config.xml.
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
    <application android:usesCleartextTraffic="true" />
</edit-config>

Then also define the namespace by appending the following as an attribute to the <widget ...> tag at the top of the file: xmlns:android="http://schemas.android.com/apk/res/android"

Button are not populated on mobile

@PhilGrunewald reported that buttons are not populated on mobile.

I've tested here and it works fine for me. Possible issues I can think of:

  • missing a plugin. These are the requirements:
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-file 4.1.0 "File"
cordova-plugin-whitelist 1.2.1 "Whitelist"
  • not on latest master

If you plug it in and inspect it with Chrome, you can see the error on the Javascript console.
Alternatively you should also see the message on DDMS (Android debug monitor).

P.S. I'm loving the colours! (though a tad strong)

Post code linking

When linking via post code

  • no feedback of success
  • Menu still shows "Register" in 2nd button (should be Authrise/My Household)

Present content in iFrames

Simplify the use of iFrames into a single 'main' iFrame, below to top navigation bar.
Ultimately the only data to be stored on the device is ID + sc.

Keep local activity recording as backup for offline use only? (Or demand mobile data?)

Allow images for buttons

Ultimately pictures might be the best way to convey the meaning of a button.

Proposed solution: we add image optionally into json:
"Travel bike": {
"title": "meter: travel bike",
"caption": "By bike",
** "image": "bike.png",
** "help": "Bike, road bike, tandem. For electric bikes use 'car' unless you pedal hard ;-)",
"ID": 30032,
"category": "travel",
"next": "travel purpose"
},

Handle profile with no data

[web]:app/profile.php should display no graph but:

"No data yet" - if this idMeta has a date > 2000-01-01 in table Household
"Register a date to see your data here" - if no HH entry or date == 2000-01-01

Rainforest Automation Connection

Setup US Dev Database and develop component for acquiring smart meter data from specified meter via Rainforest Automation cloud.

  • Setup a US Database; modify METER to point to it using a new "language US" flag.

  • Add to connection js the additional infrastructure necessary to poll for data from the Rainforest Automation Cloud.

  • Figure out how to establish connections with Cloud robustly; per household.

BACK and DONE buttons

At the bottom of every activity screen is a

back (bottom left) this requires a 'history list' of how we got here
done (bottom right) skips to enjoyment

At the bottom of every survey screen is a
back (bottom left) go to previous
skip (bottom right) skips to next

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.