Samu07
Samu074d ago

Need help for my home assisant

I want to code my own home assistant but after i almost finished i saw that could anyone help me finding the problem, cause i checked almost everything
No description
4 Replies
SkyTrashPanda
SkyTrashPanda3d ago
I'm not a java genius by any stretch, but I'm missing what error you're seeing? The overview on the upper right is tiny and unreadable. What is the issue it presenting with/outputting?
smartest guys in the guninvalid
im so confused why do you have HTML and JS in a python file? can you explain what you are trying to do with as much detail as you can? what device are you programming? how? and what's your error?
Samu07
Samu07OP3d ago
cause the complete down code is red, but the problem is i'm new in programming and i think i've got my problem. I've coded Python, JS and HTML in one doc, could it be possible that i can do that or should i create a single file for everything I've just seen it by a youtuber that it is possible in any way but now i have no idea
smartest guys in the guninvalid
i feel like you're honestly better starting from scratch. with a project like this, it helps a lot if you define exactly what you want your end goal to look and sound like ok i think i need to listify this, im starting to yap too hard so some general pointers for project development:
start by defining where you want to go. make sure you know: what you want your home assistant to look like (physical device or chatting app?) how you want to interact with it (through a command line? on a website? by touchscreen? by voice?) what you want your assistant to actually do (organize calendar? write emails? turn off the lights? turn off the thermostat? answer questions?) -if it helps, i really recommend writing down all of this by hand. do a sketch or mockup with a pencil and write bullet points. it helps a lot with organization once you have a final destination, consider how you want to get there. this means looking at what tools you will use to do what you are trying to do, do you need to program in python? html? js? do you need to do soldering or 3d printing? most importantly, start simple. you've got a lot of time in your life. start with a simple product: just a thing that can talk to you. maybe all it does is organize a simple calendar, that's honestly enough to start with. once you've got that done, you can ask it to process your emails, or install it in a physical device, then you can make it sense temperature, then you can make it control your fridge or whatever. as you go from simpler thing to less simple thing, it will build off of whatever you have and give you a better idea of where to go and how to get there. as for this specific question, yes, you would need to program python, html, and js in separate files there are circumstances where you can embed JS in HTML or HTML in python but there's really no reason to do that

Did you find this page helpful?