Giter VIP home page Giter VIP logo

3house's Introduction

3house's People

Contributors

gitter-badger avatar ibaton avatar pravussum avatar tylerwhall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

3house's Issues

3House application menu Items unable to working.

Hello,
I am trying to do this user customization profiles in 3House.I successfully added to menu item for Add profiles in application,but doesn't work the menu item and doesn't show the menu icon .I creating the menu item like thisscreenshot from 2016-04-13 16-13-22.
When I click the menu item "Add Profiles" it will show error is 3House has been stopped.I written the menu item code in Main Activity.java like this
screenshot from 2016-04-13 16-19-46.
How to open the another Activity layout while click the menu item in 3House.The activity name is "Add Profiles" like this
screenshot from 2016-03-29 12-06-47.Please help me...
Thanks,
Amar.

refactoring: Sitemap* classes

There are two SitemapFragment classes, and classes with Sitemap in the name do not generally clarify if they're to drive the UI for interacting with a sitemap, to choose a sitemap in settings, etc.

Switch items with only 1 mapped command are hidden

I have some Switch items, that only have one specific function, instead of multiple or the default OnOffType switch type:

default.sitemap

Switch item=devices_leroy mappings=[OFF="Alles Abschalten"] visibility=[devices_leroy>0]

Those sitemap entries are completely hidden.

Expected behavior

The sitemap entries should be shown and should look like a button instead of a radiobox.
The button should clearly indicate that it is still active (like an enable radiobox stays enabled)
It should not be "unpressable".

We can discuss, how we can show that the button is pressen. I would think about letting it look like "pushed in", but in flat design this would not fit.

make full row clickable

If a row has a single tappable item in it, make the whole row tappable instead.

Example:
screenshot_2015-05-02-11-16-41

The rows here with a ">" icon in them are only tappable on the icon. The entire row should respond to a tap. The same would be true of rows representing binary switches.

Things like sliders would be exempt from this change.

We need to provide a user customization profile for user's.

Hello,
I need to create a "Add Profile" button in layout of item_sitemap.xml like this
screenshot from 2016-03-29 12-00-34
When user wants to adding a new profile's like "Home,Day,Night...etc".When user press the "Add Profile" button open the another layout like this
screenshot from 2016-03-29 12-06-47
The user enter the profile's.The profile's save under the "Add Profiles" in layout of item_sitemap.xml.like this
screenshot from 2016-03-29 12-04-00

The user pree the "Home" profile, it will open the sitemap home page like this
screenshot from 2016-03-29 12-26-59

I want to do these tasks in app itself.Then,How to do?. I easily created a "Add Profiles" button but where i did write the button code in 3House.It's user customization profile's. For example user going to outside.The user already creating profile name as "Away",the user press the "Away" in that what are the selected items to be activated at that moment.How to do this task in 3House.Please help...wait for your response.
System Environments:
Operating system: Fedora 22(64 bit).
Android Studio:Android Studio 2.0 beta6.
Java:Java 1.8
Thanks,
Amar.

Create Test sitemap

Should create a sitemap with every possible scenario in it.
Useful as coverage test.

Would be awesome to have this hosted somewhere in the feature.

"Lost connection to server" error for every item in sitemap

I've got a sitemap with several groups for all the rooms in the house and so on.
No matter which of the groups i choose in the current release, it always fails with error "Lost connection to server". Tried a couple of times with different networks (VPN, Wifi at home, ...) - always the same.

Selection items send commands when shown on page

If there is a Selection item on the sitemap, it instantly sends a command to openHAB with the current selection. Even if it was already set.

expected behavior

Selection items should only send commands after a selection has been done (e.g. closing the dropdown)

We are creating a add profiles in app for user's.

Hello,
We need to provide a options to user,that option name is "add profiles". How to make the this kind of activity in 3House.I want to do the task in app itself.In previous question showing the some screen shots,the user creating the own profile in application. The user creating a profile name is "Day",the profile name saved under "Add Profiles". The user click the "Day" it's open the Sitemap's .At that time user selecting the items and save it in openhab sitemap server.How to save the selected items in openhab server.The selected items not able to activate at that moment.When user click the profile name:"Day" at that only activate the selected items.
Ex: Suppose we have 4 items (1 bulb, 1 fan, 1 door, 1 window)

Profile Day: bulb => on, fan => on, window => open, door => close

Profile Night: bulb => off, fan => off, window => close, door => close

Thanks,
Amar.

Switch Items with 1 mapping send commands when being rendered

The feature added in #31 causes the Switch (Button) to send its command when it is rendered in 3House.

This behavior clones the issue from #22

Reproduction

  • Kill 3House App
  • Open App
  • Sitemap displays a switch item with single mapping (see feature #31)
  • 3House sends the command, even if not pushed.

Expected behavior

The button is only pressed when being pushed by the user

Thoughts

This may happen, when Switch is already in its state, the mapping would show. For Example:

  • User presses Button "Turn Off All"
  • This maps to OFF of the Switch Item devices_turn_off_all
  • User closes app
  • User opens app again
  • App sees that "Turn Off All" is in OFF State and sends command (but should not!)

Charts not working over http basic auth https remote url

When using 3House over a https connection, which is secured with a username and password (http basic auth from openhab), charts are not working, because the request is faulty.

This is what openhab logs:
2015-06-14 23:24:29.173 [WARN ] [.io.net.http.SecureHttpContext] - authInfos '�)^��q���"Č' must contain two elements separated by a colon

Other items work fine.

Cell Icons

To few icons to select for controllers.

Should modify the cells to provide more.

[BUG] Graphs are not showing when using mysql persistence

Graphs are empty when I use mysql persistence.

Request log when accessing from web browser (chrome):
127.0.0.1 - - [26/Aug/2015:19:18:11 +0000] "GET /chart?items=Temperatura_Cyrkulacja&period=D&random=1&service=mysql HTTP/1.1" 200 10020

Request log from application:
127.0.0.1 - - [26/Aug/2015:19:16:30 +0000] "GET /chart?items=Temperatura_Cyrkulacja&period=D&random=968512915 HTTP/1.1" 200 2930

[BUG] - Label inline Value

What:

Trailing texts falls of when value is in lined in label.

Example:
Text item=sensor_living_room_entry_temp label="Temperatur [%s °C] TV"

Showing:
Temperatur XX.xx °C

Expected:
Temperatur XX.xx °C TV

server setup Fragment UI flow changes

First run: server setup should have NEXT button, not BACK button

The button should probably change to SAVE when the server setup Fragment is opened via the Drawer.

Hoe to create a SQLiteDatabase in android studio?How to store and retrive the data in SQLiteDatabase?

Hello sir,
we are creating the customization profiles in android studio.In android studio we are adding the some other activity layouts.In android how to store the data and retrived the data,then how to retriveing data pass to MainActivity.What to do things used for this king of work.Any things downloaded for this problem solving. I try do the this activity,but i didn't get the solution.I getting the error Unfortunately,name has stopped, while running the application in android device.In android device how to strore the data in database when click the save button.please help me...wait for your response.
System Environments:
OS:Fedora 22 (64 bit).
JAVA: JAVA 1.8
Android studio: Android studio 2.0(Beta 6).

Translation - German

What:

Should translate the app into German
Both in app and promo text for the play store.

Why:

Most people find it nice to have app translated in their own language.
There are as many German users as English users and it would be appropriate to have it translated in both languages.

How:

Go to http://os9rldd.oneskyapp.com/ and start translating

NPE in VoiceCellBuilder

NullPointer in treehou.se.habit.ui.control.builders.VoiceCellBuilder$1, line 41

Happens when clicking on the "button" of a controller inside the app (not a widget).
If I remember correctly i fiddled around with "Voice" commands yesterday, without knowing what I'm doing.
The reason is probably that I didn't configure any voice related stuff in openhab and thus 3House didn't load any items into the controllers items dropdown... so I didn't choose any item and the controller was saved like this (item null).

If you need the full stacktrace, let me know... got a screenshot - didn't want to send it via Google, though.

KitKat support

When I run the app on an API 19 emulator, I get this:

java.lang.RuntimeException: Unable to start activity ComponentInfo{treehou.se.habit/treehou.se.habit.MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features

I'll see if I can find the root cause.

support self-signed certificates

Of the 20 current Play Store reviews, one 1-star review is by someone with a self-signed SSL cert. Here are guidelines for supporting it. Maybe we can turn that 1-star review into a 5-star review.

How to create a user customization profiles in 3House?

Hello,
I need to developing the some new feature in 3House.I create a add profile option to the user.When user create a profiles like"Home,Away,Day,Night".
screenshot from 2016-03-29 12-00-34.
How to implement the this kind task in 3House.Where,I did the changes and writing the some code.
In above screen shot,Whenever user clicking the "Add Profiles" open the another actvity layout.
screenshot from 2016-03-29 12-06-47.
Whenever user create a profiles like"Home,Away,Day,Night",saved under "Add Profiles".like below the screen shot.How to save the user profiles and create a database for user profiles.
screenshot from 2016-03-29 12-04-00.
The user choose option "HOME" having the sitemaps and items.like below screen shot
screenshot from 2016-03-29 12-26-59.
The user enter into the sitemaps and selected some items and saveit at the time not able to activate the items,the user return to the home page like"Home,Away,Day,Night".When user click the Home at taht time only activate the selected items.How to save the selected items in openhab.Then,How did do the this task in 3House.Please help me...wait for your response.
Thanks.
Amar.

Migration service

We need a system to notify users about breaking or regular updates when moving from a version to another.

Crash when removing server

Press and hold to remove a server when there are no servers causes a crash on my device. Using latest version from Play store.

[Feature Request] Widget to group the items as task and run

Hi,

I need a feature to add custom widgets to group items and trigger the respective commands so that users can have customized profile like "Day, Evening, Away ...". So that I can apply different task at different time by selecting them as shown in https://community.openhab.org/t/different-take-on-client-ui-android-for-now/3561/72.

But it is using the tasker app and instead I want to integrate it in the app(3house) itself.

What needs to be done to build that feature in 3house app ?

Thanks,
Kiran.

Colorpicker widget lacks ON/OFF/INCREASE/DECREASE buttons

The Color Items is capable of more commands than just a HSB color object.

For intuitive usage of lights, we should implement the on/off buttons as well:

  • 🔼
    • push: send command ON
    • hold: send command INCREASE (repeatedly)
  • 🔽
    • push: send command OFF
    • hold: send command DECREASE (repeatedly)

There would also be a possibility to send Percent objects to the color item, which could be used for dimming the current color, without changing the color mix. But I think the current color selection implementation works perfectly fine for dimming (outer ring).

I am not sure how we could visualize the two additional buttons without being too obstrusive. We can collect ideas here.

Translations

What:

Should translate the app to multiple languages as.
Both in app and promo text for the play store.

Why:

Most people find it nice to have app translated in their own language.
Many of the users doesn't have English as their primary language and it would be appropriate to have it translated into multiple languages.

How:

Go to http://os9rldd.oneskyapp.com/ and start translating

Delay to show items when creating a controller

Hi,

I have a lot of items (200 almost) and when I try to create a controller button, if I click on "item type" it just shows up an empty combo box. I have to wait a minute and then click to see all the items.

Right now, I'm using OH via internet and I think because of that it is a little slow to load all the items, but it is very annoying to have to wait that long for every new button I try to create.

Can you do some cache of the items list? So that I have to wait that long only for the first button?

Thanks!! I'm enjoying a lot 3house app!!

how to create a user profiles in existing application in android studio.

Hello,
How to create a adding the user profiles in your 3House in android studio.E.g first floor,second floor,add profiles.In add profiles having the user create options,when click the add profiles showing the enter user profile, and save button.When click the save button,that user profile store the under add profiles on the screen.e.g:user profile home.The user profile containing the first floor,second floor widget information.The user selecting the lights,fans.The selected items at that time unable to work,when click the home selected items work properly....how did do the this kind of task.please help me wait for your response.
System Environments:
Operating System:Fedora 22 (64 bit).
Java:java 1.8.
Android studio:Android studio 2.0(beta 6)

remember sitemap selection

When the app (re)starts, it asks again which sitemap to use. As sitemap selection is already available via the drawer, let's re-use the last-chosen sitemap. The user is free to choose an alternate via the drawer menu.

How to do the menu action items working in 3House application?

I am trying to do creating a menu items of "Add Profiles" on top of application in 3House.I created "Add Profile" item in site map.xml in res folder mobile directory.The "Add Profile " item code like this
screenshot from 2016-04-13 16-13-22.
The "Add Profile" item unable to work.I did write the Add Profile item code in Main Activity.java
screenshot from 2016-04-13 16-19-46.I also creating a addprofiles class like below screen shot
screenshot from 2016-04-14 15-22-56.When click the "Add Profile" item on top of application,but it will showing the add profile layout.
screenshot from 2016-03-29 12-06-47.Please help me where i write the code for "Add Profile" item in 3House.How to create a database for storing the user profiles.
Thanks,
Amar.

Option: Colorpicker: send command while still holding finger on colors

To make it easier to find the right color, it would be nice to have a small optionbox at the bottom of the colorpicker to enable instant color changes.

Default behavior: send HSB Type when releasing finger. This should be kept as default behavior.

Optional behaviour through optionbox:

  • send HSB Type if...
    • has been changed (this should be the hook) AND
    • 200ms (to be discussed) have passed since last send

I have a hard time fine-tuning the color when I always have to re-touch (and therefore misplace the selection dot).

get newlines out of string resources

Relates to #37

Newlines shouldn't appear in strings. Instead, the layout where those strings are used should be changed to make them multiline. Newlines in strings are a problem for translations, since it's hard for the translator to know where the newline goes in the translated string.

How to create a new activity layouts in your 3House.

Hello,
I want create new button in item_sitemap.xml.How did do the this kind of task in 3House.How to write the button java class,where I write the button java class in 3House.In this task whenever I click the button open the another activity.please reply me...wait for your response.

New launch icon

The current icon is kind of boring.
We should try creating a new one.

How to create a rest api services for user customization profile's?

Hello,
In 3house how to create a "rest api's" for user customization profile's.Where I create a "rest api's" in your 3house.The openhab architecture
images.
The rest api services where is located in your 3house.how to write the rest api's accessing the user profiles .Where I need to write code for like add profiles button,save profiles,etc.please help me..
Thanks,
Amar.

How to add new feature to 3House application?

Hello,
I need to add the user customization profile in your 3House.How to implement this feature.The user entering the application click the sitemaps,it will open the Item Sitemap.I need to add the new button i.e "Add Profiles" under Item Sitemap like below screen shot
screenshot from 2016-03-29 12-00-34.
Whenever user click the "Add Profiles" it will open a another activity layout name is Enter user Profiles like below screen shot
screenshot from 2016-03-29 12-06-47.
Where I need to write code for user customization profiles.
Thanks,
Amar.

Crash when using decimal step value

The app crashes when I'am loading a page with a Setpoint widget with a decimal step value E.g.:

<widgetId>0002_0_0_1_2_3_4</widgetId>
<type>Setpoint</type>
<label>Temperature</label>
<icon>none</icon>
<minValue>16</minValue>
<maxValue>28</maxValue>
<step>0.5</step>
<item>
<type>NumberItem</type>
<name>NUM_Temperature</name>
<state>21</state>
<link>
http://172.17.2.21:8080/rest/items/NUM_Temperature
</link>
</item>
</widget>

I found the following error in logcat:

11-24 11:40:07.502 E/Communicator(9311): Received page error http://172.17.2.21:8080/rest/sitemaps/default/0002/
11-24 11:40:07.502 E/Communicator(9311): retrofit.RetrofitError: Invalid int: "0.5"
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:400)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:220)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:278)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.CallbackRunnable.run(CallbackRunnable.java:42)
11-24 11:40:07.502 E/Communicator(9311): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-24 11:40:07.502 E/Communicator(9311): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.Platform$Android$2$1.run(Platform.java:142)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Thread.run(Thread.java:818)
11-24 11:40:07.502 E/Communicator(9311): Caused by: java.lang.NumberFormatException: Invalid int: "0.5"
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.invalidInt(Integer.java:138)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parse(Integer.java:410)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parseInt(Integer.java:367)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parseInt(Integer.java:334)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:260)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserializeWidget(WidgetDeserializer.java:58)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:105)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:875)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson$1.deserialize(Gson.java:128)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserializeWidget(WidgetDeserializer.java:69)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:105)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:875)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson$1.deserialize(Gson.java:128)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.LinkedPageDeserializer.deserialize(LinkedPageDeserializer.java:56)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.LinkedPageDeserializer.deserialize(LinkedPageDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:775)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.converter.GsonConverter.fromBody(GsonConverter.java:63)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.BasicAuthServiceGenerator$OpenHabConverter.fromBody(BasicAuthServiceGenerator.java:90)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:367)
11-24 11:40:07.502 E/Communicator(9311): ... 7 more
11-24 11:40:07.502 D/PageFragment(9311): error java.lang.NumberFormatException: Invalid int: "0.5" Invalid int: "0.5"

Please change this variable to a decimal type.

Replace retrofit with Volley

Retrofit isn't really made for dynamic urls.
Retrofit should be replaced to have one thing less to worry about.

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.