hapttic icon indicating copy to clipboard operation
hapttic copied to clipboard

Hapttic -> Some improvements and functions

Open timonych opened this issue 2 years ago • 3 comments

Hello, @jsoendermann

First of all, I want to thank You for this project. It's great application for cheapest automation. I've found that hapttic can have a more flexible with multiple scripts and rootPath's.

I've made a some changes to make hapttic more flexible.

  • config via yaml
  • multiple scripts
  • fast run with predefined script

If You not against I can make a Pull request to merge this improvements. But it's my first experience with Golang. :)

timonych avatar Mar 15 '23 13:03 timonych

I've been using hapttic for some time and your improvements sound great!

Could you possibly also look into scripts not returning anything if they're waiting too long?

Also, a way to run a script in the background would be amazing!

For example let's say you need to run a longer task and then make a callback somewhere from the script, this would do wonders.

barrelltitor avatar Mar 23 '23 00:03 barrelltitor

@barrelltitor Feature with some timeout can be done, it's not so hard to imlpement.

What about async working with background scripts - it's more harder to do. You need more components, e.g. database (mariadb, redis) and script will write result to DB and hapttic will read from it.

By the way, I have pushed changes to fork: https://github.com/timonych/hapttic

timonych avatar Mar 23 '23 06:03 timonych

The improvements have been working great, but I have a 500kb body that I'm trying to send and it'll throw an error 500 e.g

curl -X POST http://localhost:8080/staffreport -d @./debugRandomJsonData.json 500 Internal Server Error

I am calling the IP and port directly without any other proxies in front when testing this

barrelltitor avatar Jun 07 '23 00:06 barrelltitor