This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Making app's with Windows PC without wifi possible?

Waiting for version(s) the update(s) I want also to try to do some useful things for the Homey community and began to look into making app's.

Looking to the command lines by Getting started:
  • npm install -g athom-cli
  • athom login
  • athom project --create
  • athom project --run  
it seems to me that this is for Linux.
Because you need to select your Homey also wifi.

If that is true than I don't have, with sadness, to look further in to this.

Comments

  • Nope, just install Node.js on Windows and you're set. 
    Did it yesterday, works right away :smile: 
  • edited February 2016

    How to develop apps for Homey on Windows:

    Install Node.js (windows version from their website),

    Open CMD (with admin rights?)

    Type "npm install -g athom-cli" (in CMD)

    Type "Athom login" (in CMD)

    (*login with your athom account)

    Type "Athom project --create" (in CMD)

    - Fill in all the values (project name etc.) (in CMD)

    - A map has been created with your project name

    - Navigate into the map using:
    "cd com.mapname" (in CMD)

    Type: "Athom project --run" (in CMD)

    Editing the project can be done by any text editor.
    (open app.js in the project folder)

    The app will run just as it would be when installed on a Homey, the app will only work when ran with "Athom project --run",  and can be terminated with CTRL + C (sometimes CTRL+ C + ENTER).

    You must be connected to the same WIFI as Homey in order to upload and run your newly created project.

    Any debugging can be done my writing to the Homey.log.

    Good luck!

  • (Just make sure Chrome is your standard browser as Athom login spawns a browser)
  • Thanks for all your reactions. Only wifi is then still the problem here, I have to look in to that..
  • There is also an athom project --install command, which will install the app on Homey and you wont have to keep the CMD window open :)
  • Crunch said:
    There is also an athom project --install command, which will install the app on Homey and you wont have to keep the CMD window open :)

    I did not know that! Thanks!
  • Thanks for all your reactions. Only wifi is then still the problem here, I have to look in to that..
    How do you plan on using Homey if you have no wifi available?
  • If your pc doesn't have wifi is shouldn't matter, but it needs to be connected to the same network.
  • Not on my PC.
    Had to use my tablet to connect Homey to my wifi. ;)
  • Ah, that's not a problem then.

    Happy coding! :)
  • You don't need wifi on PC. Homey (currently) requires wifi. Only requirement is to be able to connect to Homey from PC. Try http://<homeyIP>/
  • Homey's IP is visible on the welcome page. 192.168.xxx.xxx. :)

  • UrandayUranday Member
    edited February 2016
    Connecting homey to your network requires a WIFI enabled device (a phone, tablet, laptop etc). Developing does not require this assuming that your PC and the WIFI are on the same network.
  • EmileEmile Administrator, Athom
    It doesn't matter if your PC is connected through cable or Wi-Fi, it should only be able to reach Homey on the local network.

    In the future we'll even add support for developing over USB :-)
  • If you make it possible to support debugging with breakpoints and variable management you'll be my new hero 
This discussion has been closed.