# Farmware MoveAbsolute and ExecuteSequence not working

**URL:** <https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784>\
**Category:** Troubleshooting\
**Created:** [January 12, 2020, 6:20am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784 "2020-01-12T06:20:27Z")\
**Posts on this page:** 9\
**Page:** 3

<div class="post-metadata">

**Author:** ![whitecaps](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/w/ea5d25/32.png) [@whitecaps](https://forum.farmbot.org/u/whitecaps)\
**Post date:** [February 15, 2020, 3:31am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/41 "2020-02-15T03:31:34Z")

</div>

I have tested my Farmware on FBOS 9.1.0 it works fine and runs a bit faster. Thank you both for helping me out!!! I am growing again :). @RickCarlino I can live with the 30sec timeout.

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 15, 2020, 5:28pm UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/42 "2020-02-15T17:28:40Z")

</div>

I’m glad that you are operational again @whitecaps.

For anyone that _does_ have a problem with the 30 second timeout and is finding this thread via search, I’ve created an example library of how to solve the problem with an off-device software package.

> **[FarmBot-Labs/remote-control-example](https://github.com/FarmBot-Labs/remote-control-example)**
>
> Learn how to remotely control your device from a custom application. - FarmBot-Labs/remote-control-example

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [February 16, 2020, 10:25am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/43 "2020-02-16T10:25:56Z")

</div>

> [@whitecaps](#):
>
> works fine and runs a bit faster

Just curious : What specific Farmware package’s performance are you reporting there ?

With your **`"Hello Farmware Test"` Farmware package** ( demo as provided in this thread )  
I tested **execution to completion** as a little under 30s. ( Roughly **500% “faster”** )

I use a Raspberry Pi 3 Model B Plus, but doubt whether the speedup is much due to that 😕

---

<div class="post-metadata">

**Author:** ![whitecaps](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/w/ea5d25/32.png) [@whitecaps](https://forum.farmbot.org/u/whitecaps)\
**Post date:** [February 17, 2020, 4:10am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/44 "2020-02-17T04:10:42Z")

</div>

Hey @jsimmonds I haven’t tested it on my Hello Farmware test but will do when I get back home on Wednesday.

I am running it on my more complex Grid code. As I need to spin up Farmware for each grid movement it does take around 2-3 seconds to start.

I still time out on my longer movements i.e. moving the x axis past 2 meters (could speed up the steppers lol), but I can just try except pass on the error and all good!

I don’t get a timeout on my first few device calls so that’s a big improvement.

@RickCarlino I wonder a ways down the roadmap when you’re through this transition period. If it is feasible to introduce a sequence shape that calls out to an embedded javascript code block or an api. That might be a good long term alternative to Farmware.

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [February 17, 2020, 5:36am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/45 "2020-02-17T05:36:04Z")

</div>

> [@whitecaps](#):
>
> that calls out to an embedded javascript code block or an api.

Yay, I like that too . . a microservices consumer solution 🙂  
I think I saw code that does this already using HTTPS POSTs.

> [@whitecaps](#):
>
> it does take around 2-3 seconds to start.

I also noticed that. I’ll see if I can discover where that time is being “wasted”. Python _should be_ up and executing well before then (?)

---

<div class="post-metadata">

**Author:** ![RickCarlino](https://forum.farmbot.org/user_avatar/forum.farmbot.org/rickcarlino/32/3593_2.png) [@RickCarlino](https://forum.farmbot.org/u/RickCarlino)\
**Post date:** [February 17, 2020, 4:05pm UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/46 "2020-02-17T16:05:52Z")

</div>

@whitecaps That’s an interesting idea and I’d like to hear more about it. What would the API look like? How do you imagine it working overall? Would this be similar to the `assert` block, but for Javascript?

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [February 18, 2020, 4:43am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/47 "2020-02-18T04:43:02Z")

</div>

> [@jsimmonds](#):
>
> I’ll see if I can discover where that time is being “wasted”.

Found this **`import`** statement is the biggest contributor by far 🙂

```auto
from farmware_tools import get_config_value, device

```

Uses elapsed **3.165** seconds ! ( on a RaspberryPi 3 Model B Plus )  
@whitecaps if you have Python 3 skill, this might be one for you.

---

<div class="post-metadata">

**Author:** ![whitecaps](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/w/ea5d25/32.png) [@whitecaps](https://forum.farmbot.org/u/whitecaps)\
**Post date:** [February 19, 2020, 11:21pm UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/48 "2020-02-19T23:21:52Z")

</div>

@jsimmonds I will add that to my trello backlog and I’ll post anything I find. Thank you for pointing me in the right direction.

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [February 20, 2020, 2:52am UTC](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784/49 "2020-02-20T02:52:21Z")

</div>

@whitecaps Happy if that helps you. All I did was a simple-minded time report around that **import** , e.g.

```auto
#!/usr/bin/env python

'''Hello Farmware Test

A simple Farmware example that tells FarmBot to log 5 new messages.
'''

from datetime import datetime
from sys import stderr
print('{} start'.format(datetime.now().time().isoformat('milliseconds')), file=stderr, flush=True)
from farmware_tools import get_config_value, device
print('{} starting'.format(datetime.now().time().isoformat('milliseconds')), file=stderr, flush=True)

INPUT_VALUE = get_config_value(farmware_name='Hello Farmware Test', config_name='input', value_type=str)
device.log(message='Hello Farmware! Test input was: {}'.format(INPUT_VALUE), message_type='success')
[. . .]

```

[Previous page](https://forum.farmbot.org/t/farmware-moveabsolute-and-executesequence-not-working/5784.md?page=2)
