philgrunewald / meterapp Goto Github PK
View Code? Open in Web Editor NEWActivity app collecting time use codes
Home Page: http://www.energy-use.org
Activity app collecting time use codes
Home Page: http://www.energy-use.org
Buttons have small / varying height
Or any other strings coming from the json structure
The link points to the http://www.energy-use.org website.
Either
If there are fewer than 6 buttons, remove category class from remaining buttons too.
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'.
Show all logged activities with option to edit and add.
record the last survey screen that was completed and go there when returning to "About me"
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...)
Needs activities to go from stack of current to stack of past activities.
Sort by most recent.
We should compare our .gitignore files.
I keep having to uninstall and reinstall packages to get cordova to work after pulling code from you @gozzilli
simply check
if ([next] !== "enjoyment" || "home") { print ... >}
store dates in MySQL datetime format for ease of import
Consider:
to have more space for the profile
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.
Issue:
ClearText error on Android 9 device.
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:
<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"
@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:
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-file 4.1.0 "File"
cordova-plugin-whitelist 1.2.1 "Whitelist"
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)
Left symbol to remove
Right time (when reported) - onClick option to change the time
When linking via post code
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?)
ActPixel menu button - no need to authorise
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"
},
[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
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.
When returning to a survey screen the selected button is shown in 'green'
@gozzilli Just wanted to try out the issues feature. And I fear you might still be working on the code...
Add text input for "other" button
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.